<?php
include_once "../header1.php";
?>
<?php
include_once ("$basedir"."/Login/databaseconnection.php");

if(!loggedin())
{
	require_once ("$basedir"."/index.php");
}
   
   else
   {
   ?>
</head>
<body>
  <?php
include_once "../header2.php";
?>
<?php
include_once "topmenu.php";
?>
<div class="left">
 
<div class="articles">
<center>
  <h4>EXAMS</h4></center>
<?php
include_once '../Login/databaseconnection.php';
if(!loggedin())
{
require_once '../index.php';
}
   
   else
   {
 $result = mysql_query("SELECT * FROM exam");
echo '<table width="957" border="1">
<tr align="center">
<td width="100"><b>School_Id</b></td>
<td width="100"><b>Exam_Name</b></td>
<td width="100"><b>Year</b></td>
<td width="100"><b>No_Of_Sat_Students</b></td>
<td width="130"><b>No_Of_Passed_Students</b></td>
</tr>';

while($row = mysql_fetch_array($result))
{

  echo '<tr align="center">';
    echo '<td width="100">'.$row['School_Id'].'</td>';
    echo '<td width="100">'. $row['Exam_Name'].'</td>';
	echo '<td width="100">'. $row['Year'].'</td>';
    echo '<td width="100">'.$row['No_Of_Sat_Students'].'</td>';
    echo '<td width="130">'.$row['No_Of_Passed_Students'].'</td>';
      echo '</tr>';
  }
   echo "</table>";
  }
  ?></div>
</div>

<div class="rightmenu"> 
<?php
include_once "menu.php";
?>
<?php
include_once "../footer.php";
}
?>
</body>
</html>